package TimeUtil

import (
	"fmt"
	"time"
)

var t = "2006-01-02 15:04:05"
var loc, _ = time.LoadLocation("Local")

func ParseStrToTime(str string) time.Time {
	time, err := time.ParseInLocation(t, str, loc)
	if err != nil {
		fmt.Println("ParseStrToTimeerr", err)
	}
	return time
}
